e2e: mint GitHub App installation token instead of PAT secret#23
Merged
Conversation
Phase 0 spike (#22) verified installation tokens work against the hosted MCP endpoint. Drops the E2E_GHPOOL_PAT long-lived secret dependency; the token is now short-lived and minted per run from APP_ID/APP_PRIVATE_KEY. create-github-app-token fails loudly if secrets are absent, preserving the fail-fast property from the #21 review.
42 tasks
thepagent
approved these changes
Jul 13, 2026
This was referenced Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 0 spike (#22) verified that GitHub App installation tokens are accepted by
api.githubcopilot.com. This switches the E2E workflow's credential from the long-livedE2E_GHPOOL_PATsecret (currently an OAuth token that rotates withghre-auth — a latent CI breakage) to a short-lived installation token minted per run from the existingAPP_ID/APP_PRIVATE_KEYsecrets.Changes
actions/create-github-app-token@v2step mints the token (owner: openabdev);GITHUB_TOKENfor the script now comes from the step outputcreate-github-app-tokenfails loudly when secrets are absent, preserving the fail-fast property from the Add e2e test script and workflow for MCP proxy #21 reviewpull_requesttrigger (App credentials never exposed to forks); least-privilegepermissionsunchangedTested
Dispatched this workflow on this branch: run 29208153352 — 13/13 e2e checks pass with the App-minted token, including
issue_readon #15 (App has the required repo permissions).Follow-up (after merge)
E2E_GHPOOL_PATsecret can be deleted.